package il.ac.braude.sona.entities;

import il.ac.braude.sona.gui.list_table.FieldInfo;

import java.io.Serializable;
/**
 * Entity for saving the supervisor actions in the system
 * @author Ofek Ron
 * @author Avihay Avitan
 * @author Nitzan Inbar
 * @author Sasha Rozenthal
 */
public class SupervisorAction implements Serializable  {
	/**
	 * The record number of the action
	 */
	@FieldInfo(name="Record#", isVisibleOnTable = true)
	private String record_number;
	/**
	 * The request id belongs to the action
	 */
	@FieldInfo(name="R.ID", isVisibleOnTable = true)
	private String rid;
	/**
	 * The action 
	 */
	@FieldInfo(name="Action", isVisibleOnTable = true)
	private String upaction;
	/**
	 * The user who preformed the action
	 */
	@FieldInfo(name="User ID", isVisibleOnTable = true)
	private String uid;
	/**
	 * The date of the action
	 */
	@FieldInfo(name="Date", isVisibleOnTable = true)
	private String date;
	/**
	 * Constructor for action data
	 * @param re - the record number
	 * @param ri - the request id
	 * @param up - the action
	 * @param ui  - the user 
	 * @param da - the date
	 */
	public SupervisorAction(String re, String ri, String up, String ui, String da) 
	{
		this.record_number = re;
		this.rid = ri;
		this.upaction = up;
		this.uid = ui;
		this.date = da;
	}
	/**
	 * @return the record_number
	 */
	public String getRecord_number() {
		return record_number;
	}
	/**
	 * sets record_number
	 * @param record_number - the record_number to be set
	 */
	public void setRecord_number(String record_number) {
		this.record_number = record_number;
	}
	/**
	 * @return the the request id
	 */
	public String getRid() {
		return rid;
	}
	/**
	 * sets request id
	 * @param rid - the request id to be set
	 */
	public void setRid(String rid) {
		this.rid = rid;
	}
	/**
	 * @return the the action
	 */
	public String getUpaction() {
		return upaction;
	}
	/**
	 * sets action
	 * @param upaction - the action to be set
	 */
	public void setUpaction(String upaction) {
		this.upaction = upaction;
	}
	/**
	 * @return the the user id
	 */
	public String getUid() {
		return uid;
	}
	/**
	 * sets the user id
	 * @param uid - the user id to be set
	 */
	public void setUid(String uid) {
		this.uid = uid;
	}
	/**
	 * @return the the date
	 */
	public String getDate() {
		return date;
	}
	/**
	 * sets the date
	 * @param date - the date to be set
	 */
	public void setDate(String date) {
		this.date = date;
	}
}
